<extend name="Layout:base_edit" />
<block name="body_content_block">
    <taglib name="Common\TagLib\Sohtml"/>
    <form action="{:U('Admin/user_profile_save')}" method="post" data-reload-grid="false">
        <fieldset class="fieldset_section">
            <legend>修改密码</legend>
            <table>
                <tr><th>密码：</th><td><input type="password" class="easyui-textbox" name="password" placeholder="请输入密码"/></td></tr>
                <tr><th>密码确认：</th><td><input type="password" class="easyui-textbox" name="repassword" placeholder="请输入密码"/></td></tr>
            </table>
        </fieldset>
        <fieldset class="fieldset_section">
            <legend>全局设置</legend>
            <table>
                <tr><th>分页尺寸：</th><td><input type="text" name="pageSize" value="{$login_data.pageSize}" placeholder="每页显示的条数"/></td></tr>
                <if condition="equal_permission_code('QJ_XTSZ_BJSBMC')">
                    <tr><th>设备名称：</th><td>
                            <input type="text" class="easyui-textbox" name="sipUserAgent" value="{$data.sipUserAgent}" placeholder="服务器设备名称"/>
                            <input type="hidden" name="sipUserAgent_old" value="{$data.sipUserAgent}" />
                        </td></tr>
                    <tr><th>注册端口：</th><td>
                            <input type="text" class="easyui-textbox" name="sipPort" value="{$data.sipPort}" placeholder="SIP注册端口"/>
                            <input type="hidden" name="sipPort_old" value="{$data.sipPort}" />
                        </td></tr>
                </if>
                <if condition="equal_permission_code('QJ_XTSZ_BJLDTXMS')">
                    <tr><th>来电提醒：</th><td>
                    <sohtml:radio name="call_remainder" items="1=跳转客户;2=消息提醒;4=无动作" value="{$data.call_remainder}" />
                    </td></tr>
                </if>
            </table>
        </fieldset>
        <input type="hidden" name="id" value="{$login_data.id}"/>
    </form>
</block>
<block name="body_after_block">
    <script type="text/javascript">
        item_form.resize_owner_dialog({width: 380});
        $('input[name="pageSize"]').combobox({
            valueField: 'label',
            textField: 'value',
            data: [{
                    label: '20',
                    value: '20'
                }, {
                    label: '30',
                    value: '30'
                }, {
                    label: '50',
                    value: '50'
                }, {
                    label: '100',
                    value: '100'
                }]
        });
    </script>
</block>